<div style="position:absolute;" class="popup_edit">
    <% if flash[:notice] %>
    <div id="login_error">
        <%= flash[:notice] %>
        <br/>
    </div>
    <% end %>
	
    <% form_tag session_path do -%>
	<table>
		<tr>
			<td>
				<label for="login">用户名:&nbsp;&nbsp;</label>
			</td>
			<td>
				<input id="login" class="input" type="text" size="20" name="login" value="<%= flash[:user_login] %>" />
			</td>
		</tr>
		<tr>
			<td>
				<label for="password">密&nbsp;&nbsp;&nbsp;&nbsp;码:&nbsp;&nbsp;&nbsp;</label>
			</td>
			<td>
				<input id="password" class="input" type="password" size="20" name="password" value="<%= flash[:user_password] %>" />
				<span style="margin-left: 5px;"><a href="/forget_passwd">忘记密码</a></span>
			</td>
		</tr>
		<tr>
			<td>
			</td>
			<td>
				<%= check_box_tag 'remember_me' %>
				在本机上保留我的信息
			</td>
		</tr>
    	<tr>
    		<td>
			</td>
			<td>
				<input type="submit" value="登录" />&nbsp;&nbsp;&nbsp;<input id="close_login" type="button" value="取消" />
			</td>
    	</tr>
	</table>
	<% end -%>
</div>
<style>
    .popup_edit {
        color: #000;
        font: 12px / 1.6em Helvetica, Arial, sans-serif;
        text-align: left;
        line-height: 1.4em;
        padding: 30px 50px;
        overflow: hidden;
        background-repeat: repeat-x;
        background-position: 0 1px;
    }
	
	.popup_edit input, .popup_edit textarea {
        border-width: 1px;
        background: #FFF;
        border-color: #DDD;
    }
</style>
<script>
	$("#close_login").click(tb_remove);
</script>